#ifndef __FONTLISTDELEGATE__H__
#define __FONTLISTDELEGATE__H__

#include <QStyledItemDelegate>
#include <QPainter>

class FontListDelegate : public QStyledItemDelegate {
    Q_OBJECT
public:
    explicit FontListDelegate(QObject *parent = nullptr);

    // QAbstractItemDelegate interface
public:
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
};

#endif  //!__FONTLISTDELEGATE__H__
